package com.hdjk.view.entity;

import android.text.TextUtils;

import com.lst.projectlib.entity.BaseEntity;

import java.io.Serializable;

/**
 * Created by sxy on 2017/11/9.
 */

public class HoldingFundEntity extends BaseEntity implements Serializable {
//    private FundHoldings fundHoldings;
//
//    private String intransitAssetsTotal;
//
//    private String modelPortfolioCode;
//
//    private String portfolioId;
//
//    private String portfolioName;
//
//    private String rebalanceEnable;
//
//    public void setFundHoldings(FundHoldings fundHoldings) {
//        this.fundHoldings = fundHoldings;
//    }
//
//    public FundHoldings getFundHoldings() {
//        return this.fundHoldings;
//    }
//
//    public void setIntransitAssetsTotal(String intransitAssetsTotal) {
//        this.intransitAssetsTotal = intransitAssetsTotal;
//    }
//
//    public String getIntransitAssetsTotal() {
//        return this.intransitAssetsTotal;
//    }
//
//    public void setModelPortfolioCode(String modelPortfolioCode) {
//        this.modelPortfolioCode = modelPortfolioCode;
//    }
//
//    public String getModelPortfolioCode() {
//        return this.modelPortfolioCode;
//    }
//
//    public void setPortfolioId(String portfolioId) {
//        this.portfolioId = portfolioId;
//    }
//
//    public String getPortfolioId() {
//        return this.portfolioId;
//    }
//
//    public void setPortfolioName(String portfolioName) {
//        this.portfolioName = portfolioName;
//    }
//
//    public String getPortfolioName() {
//        return this.portfolioName;
//    }
//
//    public void setRebalanceEnable(String rebalanceEnable) {
//        this.rebalanceEnable = rebalanceEnable;
//    }
//
//    public String getRebalanceEnable() {
//        return this.rebalanceEnable;
//    }
//
//    public class FundHoldings {
//        private List<Data> data;
//
//        private String size;
//
//        public void setData(List<Data> data) {
//            this.data = data;
//        }
//
//        public List<Data> getData() {
//            return this.data;
//        }
//
//        public void setSize(String size) {
//            this.size = size;
//        }
//
//        public String getSize() {
//            return this.size;
//        }
//
//    }

    //    public class Data {
    private String fundCode;

    private String fundName;

    private String fundType;

    private String mainCode;

    private String chargeMode;

    private String dividendInstruction;

    private String totalUnit;

    private String availableUnit;

    private String currentValue;

    private String currentTotalValue;

    private String investmentAmount;

    private String profitNLoss;

    private String previousProfitNLoss;

    private String undistributeMonetaryIncome;

    private String dividendCash;

    private String nav;

    private String navDate;

    private String intransitAssets;

    private String buyEnable;

    private String sellEnable;

    private String switchEnable;

    private String portfolioId;

    private boolean isGroup;

    private int size;
    public void setFundCode(String fundCode) {
        this.fundCode = fundCode;
    }

    public String getFundCode() {
        return this.fundCode;
    }

    public void setFundName(String fundName) {
        this.fundName = fundName;
    }

    public String getFundName() {
        return this.fundName;
    }

    public void setFundType(String fundType) {
        this.fundType = fundType;
    }

    public String getFundType() {
        return this.fundType;
    }

    public void setMainCode(String mainCode) {
        this.mainCode = mainCode;
    }

    public String getMainCode() {
        return this.mainCode;
    }

    public void setChargeMode(String chargeMode) {
        this.chargeMode = chargeMode;
    }

    public String getChargeMode() {
        return this.chargeMode;
    }

    public void setDividendInstruction(String dividendInstruction) {
        this.dividendInstruction = dividendInstruction;
    }

    public String getDividendInstruction() {
        return this.dividendInstruction;
    }

    public void setTotalUnit(String totalUnit) {
        this.totalUnit = totalUnit;
    }

    public String getTotalUnit() {
        return this.totalUnit;
    }

    public void setAvailableUnit(String availableUnit) {
        this.availableUnit = availableUnit;
    }

    public String getAvailableUnit() {
        return this.availableUnit;
    }

    public void setCurrentValue(String currentValue) {
        this.currentValue = currentValue;
    }

    public String getCurrentValue() {
        return this.currentValue;
    }

    public void setInvestmentAmount(String investmentAmount) {
        this.investmentAmount = investmentAmount;
    }

    public String getInvestmentAmount() {
        return this.investmentAmount;
    }

    public void setProfitNLoss(String profitNLoss) {
        this.profitNLoss = profitNLoss;
    }

    public String getProfitNLoss() {
        return this.profitNLoss;
    }

    public void setPreviousProfitNLoss(String previousProfitNLoss) {
        this.previousProfitNLoss = previousProfitNLoss;
    }

    public String getPreviousProfitNLoss() {
        return this.previousProfitNLoss;
    }

    public void setUndistributeMonetaryIncome(String undistributeMonetaryIncome) {
        this.undistributeMonetaryIncome = undistributeMonetaryIncome;
    }

    public String getUndistributeMonetaryIncome() {
        return this.undistributeMonetaryIncome;
    }

    public void setDividendCash(String dividendCash) {
        this.dividendCash = dividendCash;
    }

    public String getDividendCash() {
        return this.dividendCash;
    }

    public void setNav(String nav) {
        this.nav = nav;
    }

    public String getNav() {
        return this.nav;
    }

    public void setNavDate(String navDate) {
        this.navDate = navDate;
    }

    public String getNavDate() {
        return this.navDate;
    }

    public void setIntransitAssets(String intransitAssets) {
        this.intransitAssets = intransitAssets;
    }

    public String getIntransitAssets() {
        return this.intransitAssets;
    }

    public void setBuyEnable(String buyEnable) {
        this.buyEnable = buyEnable;
    }

    public String getBuyEnable() {
        return this.buyEnable;
    }

    public void setSellEnable(String sellEnable) {
        this.sellEnable = sellEnable;
    }

    public String getSellEnable() {
        return this.sellEnable;
    }

    public void setSwitchEnable(String switchEnable) {
        this.switchEnable = switchEnable;
    }

    public String getSwitchEnable() {
        return this.switchEnable;
    }

    public String getPortfolioId() {
        return portfolioId;
    }

    public void setPortfolioId(String portfolioId) {
        this.portfolioId = portfolioId;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getFundTypeName() {
        String type = "";
        if (!TextUtils.isEmpty(mainCode)) {
            if ("MM".equals(mainCode))
                type = "货币型";
            if ("BOND".equals(mainCode))
                type = "债券型";
            if ("MIXED".equals(mainCode))
                type = "混合型";
            if ("CP".equals(mainCode))
                type = "保本型";
            if ("EQ".equals(mainCode))
                type = "股票型";
            if ("AI".equals(mainCode))
                type = "另类型";
            if ("INDEX".equals(mainCode))
                type = "指数型";
            if ("ST".equals(mainCode))
                type = "分级型";
            if ("UNKNOWN".equals(mainCode))
                type = "其他";
        }
        return type;
    }

    public String getCurrentTotalValue() {
        return currentTotalValue;
    }

    public void setCurrentTotalValue(String currentTotalValue) {
        this.currentTotalValue = currentTotalValue;
    }

    public boolean isGroup() {
        return isGroup;
    }

    public void setGroup(boolean group) {
        isGroup = group;
    }
    //    }
}
